const doc = (ajaxinstance) => {
  const users = {}
  users.adminLogin = (postData) => { return ajaxinstance.post('/api/admin/user/login', postData) }
  users.adminList = () => { return ajaxinstance.get('/api/admin/user/list') }
  users.adminDetail = (postData) => { return ajaxinstance.get(`/api/admin/user/detail/${postData}`) }
  users.adminUpDate = (postData) => { return ajaxinstance.post(`/api/admin/user/update/${postData._id}`, postData) }
  
  users.adminWantSay = (postData) => { return ajaxinstance.post(`/api/h5/doc/wantsay`, postData) }
  return users
}

export default doc
